<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui">

<ui:composition>
	<p:dataTable var="picture" value="#{pictureModel.list}"
		filteredValue="#{pictureModel.filteredList}" filterEvent="enter"
		rendered="#{pictureModel.isInitialized}" paginator="true" rows="10"
		rowsPerPageTemplate="5,7,10,15,20,30,40,50"
		paginatorTemplate="{CurrentPageReport}  {FirstPageLink} {PreviousPageLink} {PageLinks} {NextPageLink} {LastPageLink} {RowsPerPageDropdown}">
		<f:facet name="header">List of Picture</f:facet>
		<p:column style="width:10px">
			<p:selectBooleanCheckbox value="#{picture.selected}">
				<p:ajax event="change" process="@this"></p:ajax>
			</p:selectBooleanCheckbox>
		</p:column>
		<p:column headerText="id">
			<h:outputText value="#{picture.id}" />
		</p:column>
		<p:column>
			<h:graphicImage library="images" value="../#{picture.fullFileName}"
				style="width:25px;height:25px"></h:graphicImage>
		</p:column>
		<p:column headerText="Title" sortBy="#{picture.titleLabel}"
			filterBy="#{picture.titleLabel}" filterMatchMode="contains">
			<h:outputText value="#{picture.titleLabel}" />
		</p:column>

		<p:column headerText="path" filterBy="#{picture.path}"
			filterMatchMode="contains">
			<h:outputText value="#{picture.path}" />
		</p:column>

		<p:column headerText="fileName" filterBy="#{picture.filename}"
			filterMatchMode="contains">
			<h:outputText value="#{picture.fileName}" />
		</p:column>
		<p:column headerText="type" filterBy="#{picture.type}"
			filterMatchMode="contains">
			<h:outputText value="#{picture.type}" />
		</p:column>
		<p:column headerText="Taken Date" filterBy="#{picture.takenDate}"
			filterMatchMode="contains">
			<h:outputText value="#{picture.takenDate}" />
		</p:column>
	</p:dataTable>
</ui:composition>
</html>